#ifndef ERRORMODEL_H
#define ERRORMODEL_H
#include <QAbstractTableModel>
#include "Include/IRopeProject.h"

class ErrorModel : public QAbstractTableModel
{
public:
    ErrorModel(const QList<Plugins::ErrorItem> & list, QObject * parent = NULL);

    int rowCount(const QModelIndex &/*parent*/) const;
    int columnCount(const QModelIndex &/*parent*/) const;
    QVariant data(const QModelIndex &index, int role) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
private:
    QList<Plugins::ErrorItem> _list;
};

#endif // ERRORMODEL_H
